<?php

function reequipment_user_form_maintenance_action_blank()
{  
	if (!xarVarFetch('maintenance_id', 'int:1:', $maintenance_id, '')) return;   
    if (!xarSecurityCheck('EditEquipment', 1)) return;
    $data = array();
    
     // Get company_id
    if (!xarVarFetch('company_id', 'int:1:', $company_id, '', XARVAR_NOT_REQUIRED)) return; 
	if (!xarModAPIFunc('reequipment', 'user', 'getcompanyid', array('company_id_from_url' => $company_id))) return;
	$company_id = xarSessionGetVar('company_id');
	xarTplSetPageTitle(xarML('Maintenance Action Form'));
	
	// $data['maintenance'] = xarModAPIFunc('reequipment', 'user', 'getmaintenance', array('maintenance_id' => $maintenance_id));
    // return var_export($data['maintenance']);
    
    // Company Name
	$companies = xarModAPIFunc('reequipment', 'user', 'getrel', array('company_id' => $company_id));
	foreach($companies as $var){
		$data['company_name'] = $var['company_name'];
	}
    return $data;
}

?>